﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

namespace TFramework.ECS.Group
{
    public class Group : IGroup
    {
        public Type[] RequiredComponents { get; }
        public Type[] ExcludedComponents { get; }

        public Group(params Type[] requiredComponents) : this(requiredComponents, new Type[0]) { }

        public Group(IEnumerable<Type> requiredComponents, IEnumerable<Type> excludedComponents)
        {
            RequiredComponents = requiredComponents.ToArray();
            ExcludedComponents = excludedComponents.ToArray();
        }
    }
}
